<me:UIGAAUF
    x:Class="WPFExcelReport.XZUTEI"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
     xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
     xmlns:me="clr-namespace:WPFExcelReport" 
     xmlns:PR="clr-namespace:WPFExcelReport;assembly=TICC_PRULES"  
     xmlns:YB="clr-namespace:WPFExcelReport;assembly=TGASTGA" 
    x:Name="TV"
    Loaded="Window_Loaded"
 >
    <me:UIGAAUF.Resources>
        <CollectionViewSource   x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIGAAUF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
    <WrapPanel Grid.Row="0">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock  Grid.Column="0"  Height="Auto"   Width="Auto"  Margin="0,0,0,0" Text="{Binding Source={Localization:Translate Word=留位}}"  VerticalAlignment="Center" />
        </Grid>
    </WrapPanel>
    <DataGrid Grid.Row="1" Grid.Column="0" Margin="0,1,0,0"  
                              FontSize="12"
                              CanUserReorderColumns="True"  
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True"  
                                  VerticalScrollBarVisibility="Auto"
                              RowDetailsVisibilityMode="VisibleWhenSelected"  VerticalAlignment="Top"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                          Name="dlgMaster"  
                                 IsReadOnly="True" 
                                  ItemsSource="{Binding Source={StaticResource vwMaster}}"  
                              
                              >
            <DataGrid.Columns>
                <DataGridTextColumn   Binding="{Binding ZUAUFKRS}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=生产单}}" Binding="{Binding ZUAUFLFD,Converter={StaticResource ResourceKey=pnum}}" Width="Auto"  />
                <DataGridTextColumn Binding="{Binding ZUAUFPOS,Converter={StaticResource ResourceKey=pnum}}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=留位}}" Binding="{Binding Path=QLOCK}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=车间}}" Binding="{Binding Path=QISSUE}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=自由}}" Binding="{Binding Path=QFREE}" Width="Auto"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</me:UIGAAUF>
